package com.yzzrjy.Dao.Interfaces;

import com.yzzrjy.bean.BlogCommentBean;
import com.yzzrjy.bean.BlogInfoBean;

import java.sql.SQLException;
import java.util.List;

public interface BlogDao {

    void addBlog(String uid, String text, String content, byte type, String city) throws SQLException;
    void addBlog(long newID, String uid, String text, String content, byte type, String city) throws SQLException;

    List<BlogInfoBean> getBlogList(String myUid, String sex, int start, int showPageSize) throws SQLException;
    List<BlogInfoBean> getBlogList(String myUid, String blogIds) throws SQLException;

    void updateBlogLiked(String blogId, String likedUid, boolean liked) throws SQLException;

    void addComment(String blogId, String uid, String parentUid, String content) throws SQLException;

    List<BlogCommentBean> getBlogComment(String blogId) throws SQLException;

}
